﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.PagedList<Entity.Car_Rental.Shop>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        门店管理-门店列表</h2>
    <table class="chaxun_table">
        <tr>
            <td>
                <%: Html.AddressSelect()%><input type="button" onclick="search()" class="button"
                    value="查询" />
            </td>
        </tr>
    </table>
    <div id="list">
        <%Html.RenderPartial("List", Model); %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        function search() {
            $.ajax({
                type: "GET",
                url: "/Shop/Index",
                data: { Province: $("#Province").val(), City: $("#City").val(), District: $("#District").val(), page: 1 },
                success: function (data) {
                    $("#list").html(data);
                }
            });
        }
    </script>
</asp:Content>
